/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_testpart_conditionDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression condition;

    public T_testpart_conditionDetachedCriteria() {
	super(org.testis.orm.classes.T_testpart_condition.class,
		org.testis.orm.classes.T_testpart_conditionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	condition = new StringExpression("condition",
		this.getDetachedCriteria());
    }

    public T_testpart_conditionDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_testpart_conditionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	condition = new StringExpression("condition",
		this.getDetachedCriteria());
    }

    public T_test_stepcontainerDetachedCriteria createContainerCriteria() {
	return new T_test_stepcontainerDetachedCriteria(
		createCriteria("Container"));
    }

    public T_test_teststepsDetachedCriteria createTestStepCriteria() {
	return new T_test_teststepsDetachedCriteria(createCriteria("TestStep"));
    }

    public T_test_dataobjectDetachedCriteria createDataObjectCriteria() {
	return new T_test_dataobjectDetachedCriteria(
		createCriteria("DataObject"));
    }

    public T_testpart_condition uniqueT_testpart_condition(
	    PersistentSession session) {
	return (T_testpart_condition) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_testpart_condition[] listT_testpart_condition(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_testpart_condition[]) list
		.toArray(new T_testpart_condition[list.size()]);
    }
}
